<?php
/**
 * Created by PhpStorm.
 * User: novichkov
 * Date: 06.03.15
 * Time: 19:34
 */
class index_controller extends controller
{
    public function index()
    {
        $model = $this->model('default');

        $model->table = 'aaa';
        var_dump($model);

        var_dump($this->model('default'));
        $new_model = $this->model('default', 'shop');
        $new_model->table = 'bbb';
        //var_dump($new_model);


        //multiton::getInstance()
        $this->view('index');
    }
}